#!/usr/bin/env python

import os
from distutils.core import setup

scripts = ['docindex.py','docsearch.py']

if os.name == 'posix':
    # Create extensionless symlinks to the scripts.
    for i, name in enumerate(scripts):
        root, ext = os.path.splitext(name)
        if not os.path.exists(root):
            os.symlink(name, root)
        scripts[i] = root

setup(
    name = 'docindexer',
    version = '0.9.4.3',
    description = 'Document indexer',
    long_description = 'Document indexer/searcher using PyLucene',
    author = 'Stuart Rackham',
    author_email = 'srackham@methods.co.nz',
    url = 'http://www.methods.co.nz/docindexer/',
    license = 'MIT',
    platforms = 'posix, win32',
    packages = ['docindexer'],
    scripts = scripts,
)
